package drds.binlog.common.position;


import drds.common.$;

import java.io.Serializable;


public class ClientInfo implements Serializable
{

    private String destination;
    private short clientId;
    private String filter;

    public ClientInfo()
    {
    }

    public ClientInfo(String destination, short clientId, String filter)
    {
        this.destination = destination;
        this.clientId = clientId;
        this.filter = filter;
    }

    public ClientInfo(String destination, short clientId)
    {
        this.clientId = clientId;
        this.destination = destination;
    }

    public Boolean hasFilter()
    {
        return $.isNotNullAndNotEmpty(filter);
    }


    public String getDestination()
    {
        return destination;
    }

    public void setDestination(String destination)
    {
        this.destination = destination;
    }

    public short getClientId()
    {
        return clientId;
    }

    public void setClientId(short clientId)
    {
        this.clientId = clientId;
    }

    public String getFilter()
    {
        return filter;
    }

    public void setFilter(String filter)
    {
        this.filter = filter;
    }


}
